package com.bjpowernode.springboot.service.impl;

import com.bjpowernode.springboot.domain.CharacterVO;
import com.bjpowernode.springboot.domain.UserVO;
import com.bjpowernode.springboot.mapper.CharacterVOMapper;
import com.bjpowernode.springboot.service.CharacterVOService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CharacterVOServiceImpl implements CharacterVOService {
    @Autowired
    CharacterVOMapper characterVOMapper;
    @Override
    public UserVO charVOByName(String characterName) {
        return characterVOMapper.charVOByName(characterName);
    }

    @Override
    public CharacterVO charByID(Integer id) {
        return characterVOMapper.charByID(id);
    }

    @Override
    public CharacterVO charByIdOrName(Integer id, String characterName) {
        return characterVOMapper.charByIdOrName(id,characterName);
    }
}
